<?php
/**
 * Created by PhpStorm.
 * User: wangmx
 * Date: 2016/11/17
 * Time: 17:50
 */

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class AuthenticationRoute
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' => 'api',
            'prefix' => 'api/authentication',], function ($router) {
            $router->post('save-img',['uses' =>'Api\AuthenticationController@saveImg']);
            $router->post('designer-authentication-record',['uses' =>'Api\AuthenticationController@DesignerAuthenticationRecord']);
            $router->post('brand-authentication-record',['uses' =>'Api\AuthenticationController@BrandAuthenticationRecord']);
            $router->post('designer-authentication-edit',['uses' =>'Api\AuthenticationController@DesignerAuthenticationEdit']);
            $router->post('brand-authentication-edit',['uses' =>'Api\AuthenticationController@BrandAuthenticationEdit']);
            $router->post('get-authentication-designer',['uses' =>'Api\UserController@getAuthenticationDesigner']);
            $router->post('get-authentication-brand',['uses' =>'Api\UserController@getAuthenticationBrand']);
        });
    }
}